﻿using FairyGUI;
/// <summary>
/// 游戏房间信息
/// </summary>
public class UIGameRoomInfo {
    GTextField _roomId;
    GTextField _laiziNum;
    GTextField _round;

    public UIGameRoomInfo(GComponent uiComp)
    {
        _roomId = uiComp.GetChild("房间号").asTextField;
        _laiziNum = uiComp.GetChild("癞子数").asTextField;
        _round = uiComp.GetChild("局数").asTextField;
    }

    public void SetRoomId(int roomId)
    {
        _roomId.text = roomId + "";
    }

    public void SetLaiziNum(int laiziNum)
    {
        _laiziNum.text = laiziNum + "个";
    }

    public void SetRound(int tRound, int round)
    {
        _round.text = round + "/" + tRound + "局";
    }
}
